import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";

import { RouterProvider } from "react-router-dom";
import router from "./router";

// 导入redux的注入组件
import { Provider } from "react-redux";
// 导入根仓库
import store from "./store";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  // <React.StrictMode>
  <Provider store={store}>
    <RouterProvider router={router}></RouterProvider>
  </Provider>

  // </React.StrictMode>
);
